Which of the following is the correct syntax for an event handler for a Button control in ASP.NET?

ASP.NET MVC - Online Exam Test Papers | ASP.NET MVC - MCQs[multiple choice questions and answers ] | ASP.NET MVC - Mock Test Papers | ASP.NET MVC - Practice Papers | ASP.NET MVC - Sample Test Papers |

Question:
Which of the following is the correct syntax for an event handler for a Button control in ASP.NET?

1.protected void MyButton_Click(object sender, EventArgs e){ }

2.protected void MyButton_Click(EventArgs e){ }

3.protected void MyButton_Click(object sender){ }

4. protected void MyButton_Click(){ }

Posted Date:-2022-11-08 12:19:07


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!